﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="loginLog.aspx.cs" Inherits="PeisongWeb.admin.loginLog" %>

<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统登录日志 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            登录日志
        </h2>
        <ext:Panel ID="Panel1" runat="server" Title="查询搜索" BodyStyle="padding:5px 5px 0"
            Width="1120px" Frame="true" ButtonAlign="Center">
            <Body>
                <div id="admin_edit_content_search">
                    <ul>
                        <li style="width: auto;margin-right: 5px;">
                            <label>日期：</label>
                            <ext:DateField ID="txtStartDt" runat="server" AllowBlank="true" ReadOnly="true" Width="150" />
                        </li>
                        <li style="width: auto; margin-right: 20px;">
                            <label style="width:15px;">至</label>
                            <ext:DateField ID="txtEndDt" runat="server" AllowBlank="true" ReadOnly="true" Width="150" />
                        </li>
                        <li style="width: auto; margin-right: 10px;">[<asp:LinkButton runat="server" ID="btnSearch"
                            Text="搜索" OnClick="btnSearch_Click"></asp:LinkButton>] </li>
                    </ul>
                </div>
            </Body>
        </ext:Panel>
        <p>&nbsp;</p>
        <div id="admin_list_content" style="width: 1120px;">
            <table cellpadding="0" cellspacing="0">
                <tr class="header-row">
                    <th>
                        SessionID
                    </th>
                    <th>
                        用户ID
                    </th>
                    <th>
                        类型
                    </th>
                    <th>
                        登录时间
                    </th>
                    <th>
                        IP
                    </th>
                </tr>
                <asp:Repeater runat="server" ID="rpt_list">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "row-alt":"alt"  %>'>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem,"sessionId") %>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "userId")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "userType")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "currentLoginDate")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "ip")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                    OnPageChanged="AspNetPager1_PageChanged" runat="server" AlwaysShow="True" PageSize="50"
                    InvalidPageIndexErrorMessage="无效页码" PageIndexOutOfRangeErrorMessage="页码超出范围"
                    ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                    LastPageText="末页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
